package com.syni.mdd.sjb.marketing.basemarket.utils.cps.dto;

import com.syni.mdd.sjb.marketing.basemarket.entity.dto.CpsBaseResultDto;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class ProductListResultDto extends CpsBaseResultDto {
    private Integer pageNo;
    private Integer pageSize;
    private Integer total;

    private List<ProListRecord> records = new ArrayList<>();

    @Data
    public static class ProListRecord{
       private ProductCenter productCenter;

       private String maxDistributionPrice;
       private String minDistributionPrice;
       private String maxPrice;
       private String minPrice;

        private List<DisProductSkuList> disProductSkuList = new ArrayList<>();


       private ProductDTO productDTO;
    }


    @Data
    public static class DisProductSkuList{
        private ProductDetailResultDto.Sku sku;
        private ProductDetailResultDto.ProductDistribution productDistribution;
    }

    @Data
    public static class ProductCenter{
        private String id;
        private String productId;
    }

    @Data
    public static class ProductDTO{
        private String name;
        private List<ProductImgData> bannerList = new ArrayList<>();
    }


}
